package com.github.cyf.mapper;

import com.github.cyf.domain.po.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenyifan
 * @since 2024-11-06
 */
public interface CommentMapper extends BaseMapper<Comment> {

    @Select("select * from t_comment where type = ${type}")
    List<Comment> queryByType(String type);
}